package com.sq.partner.manager.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.sq.partner.manager.dao.INlifeCoreCovDao;
import com.sq.partner.manager.mybatis.model.NlifeCoreCov;

@Repository
public class NlifeCoreCovDaoImpl extends BaseDaoImpl implements
		INlifeCoreCovDao {
 
	@Override
	public void insertCoreCovs(List<NlifeCoreCov> list) throws Exception {
		this.batchInsert("insertNlifeCoreCov", list);	
		
	}

	@Override
	public NlifeCoreCov queryById(String coreCovCode) throws Exception {
		NlifeCoreCov nlifeCoreCov = (NlifeCoreCov)this.query("queryNlifeCoreCovById", coreCovCode);
		
		return nlifeCoreCov;
	}
}
